function nShowToast(title, icon = 'none') {
	uni.showToast({
		title,
		icon,
		duration: 2000
	})
}

function sShowToast(title) {
	nShowToast(title, "success")
}

function setStorage(k, v) {
	uni.setStorage({
		key: k,
		data: v
	});
}

function getStorage(k) {
	return uni.getStorageSync(k);
}

export default {
	nShowToast,
	sShowToast,
	setStorage,
	getStorage
}
